import { onlineGetApiData } from "@/services/onlineRequest";

export async function getOnlineProjectList(params: {
    usercode: string;
    xmzt: string
}) {
    try {
        const res = await onlineGetApiData('ljjx.pm.projectList', { userCode: params.usercode, xmzt: params.xmzt, searchText: '', pageSize: 10000000, pageNum: 1 });
        if (res.code === 0) {
            return Promise.resolve({
                data: res.data,
                success: true,
            });
        }
        return Promise.resolve({
            data: res.data,
            success: false,
        });
    } catch (error) {
        return Promise.resolve({
            data: 'catch,报错了',
            success: false,
        });
    }

}
